package com.sugar.persistence.system.privilege;

import java.util.LinkedHashMap;
import java.util.List;

import com.sugar.common.query.PageModel;
import com.sugar.domain.system.privilege.PrivilegeResourceModel;

public interface IPrivilegeResourceModel {

	public void savePRModelDao(PrivilegeResourceModel prm) throws RuntimeException;

	public void deletePRModelDao(PrivilegeResourceModel prm) throws RuntimeException;

	public void deleteSelectPRModelDao(Object[] ids) throws RuntimeException;

	public void updatePRModelDao(PrivilegeResourceModel prm) throws RuntimeException;

	public PrivilegeResourceModel loadPRModelByIdDao(int id) throws RuntimeException;

	public List<PrivilegeResourceModel> findPRModelDao(String queryString, String whereStr,
			Object[] param, LinkedHashMap<String, String> orderby)
			throws RuntimeException;

	public PageModel<PrivilegeResourceModel> getScorllPRModelDao(String queryString,
			String whereStr, Object[] param, int firstPage, int pageSize,
			LinkedHashMap<String, String> orderby) throws RuntimeException;

}
